import request from '@/utils/request'

export function getMyInfo() {
  return request({
    url: '/admin/getMyInfo',
    method: 'post'
  })
}

export function updateMyInfo(data) {
  return request({
    url: '/admin/updateMyInfo',
    method: 'post',
    data
  })
}

export function updateMyPassword(data) {
  return request({
    url: '/admin/updateMyPassword',
    method: 'post',
    data
  })
}

export function getAdminList(data) {
  return request({
    url: '/admin/getAdminList',
    method: 'post',
    data
  })
}

export function addAdminInfo(data) {
  return request({
    url: '/admin/addAdminInfo',
    method: 'post',
    data
  })
}

export function updateAdminInfo(data) {
  return request({
    url: '/admin/updateAdminInfo',
    method: 'post',
    data
  })
}

export function updateAdminPassword(data) {
  return request({
    url: '/admin/updateAdminPassword',
    method: 'post',
    data
  })
}

export function enableAdmin(data) {
  return request({
    url: '/admin/enableAdmin',
    method: 'post',
    data
  })
}